package com.stony.core.util;

public class LabelValueConstant implements LabelValue {

	private String value;

	private String label;

	private String labelshort;

	public LabelValueConstant() {
		super();
	}

	public LabelValueConstant(String value, String label) {
		super();
		this.value = value;
		this.label = label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getValue() {
		return this.value;
	}

	public String getLabel() {
		return this.label;
	}

	public String getLabelshort() {
		if (labelshort != null)
			return labelshort;

		return getLabel();
	}

	public int compareTo(Object o) {
		return getLabel().compareTo(((LabelValueConstant) o).getLabel());
	}

	public void setLabelshort(String labelshort) {
		this.labelshort = labelshort;
	}

}
